package com.experiment.aicommunityback.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_goods")
public class Goods {

    private int id;

    private String name;
    //销量
    private String sale;

    @JsonProperty("type_id")
    @TableField("type_id")
    private int typeId;

    //审核状态
    private String audit;
//    单价
    private String price;
//    货号
    private String code;
//    是否上架
    private boolean shelves;
//    推荐
    private boolean recommend;
//    新品
    @TableField("newProduct")
    private boolean newProduct;
    //库存量
    private int inventory;
    //商品计量单位
    private String unit;
    //备注
    private String remark;

    //上级类型
    @TableField(exist = false)
    private int super_type;
}